package com.origin.src.mybatis.mapper;

import com.origin.src.mybatis.pojo.TUser;
import java.util.List;
//import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

//@Mapper
public interface TUserMapper {
    /* 根据主键 user_id 删除t_user表中记录 */
    int deleteByPrimaryKey(Long userId);

    /* 向t_user表中插入数据 */
    int insert(TUser record);

    /* 根据主键 user_id 查找t_user数据 */
    TUser selectByPrimaryKey(Long userId);

    /* 查找t_user表中所有数据 */
    List<TUser> selectAll();
    List<TUser> selectTest(TUser record);

    /* 根据主键 user_id 更新t_user数据 */
    int updateByPrimaryKey(TUser record);

    List<Integer> getOrderCount(@Param("memberId") Integer memberId,
                                @Param("orderStatus") Integer orderStatus,
                                @Param("assessOrderProductId") List<Integer> assessedIds,
                                @Param("outDateTimeStamp") Integer outDateTimeStamp,
                                @Param("channel") Integer channel);

    List<Integer> getOrderCountL2(@Param("memberId") Integer memberId,
                                  @Param("orderStatus") Integer orderStatus,
                                  @Param("assessOrderProductId") List<Integer> assessedIds,
                                  @Param("outDateTimeStamp") Integer outDateTimeStamp,
                                  @Param("channel") Integer channel,
                                  @Param("mobile") String mobile,
                                  @Param("memberIdIn") List<Integer> memberIdIn);

}